package org.dromara.xxmj.domain.vo;

import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.xxmj.domain.CourseChapter;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 课程章节视图对象
 *
 * @author Vincent
 */
@Data
@AutoMapper(target = CourseChapter.class)
@Schema(description = "课程章节视图对象")
public class CourseChapterVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 章节ID
     */
    @Schema(description = "章节ID")
    private Long id;

    /**
     * 课程ID
     */
    @Schema(description = "课程ID")
    private Long courseId;

    /**
     * 章节标题
     */
    @Schema(description = "章节标题")
    private String title;

    /**
     * 排序号
     */
    @Schema(description = "排序号")
    private Integer sort;
    
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 视频列表
     */
    @Schema(description = "视频列表")
    private List<CourseVideoVo> videos;

}